using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml;
using Pampa.WebControls;

public partial class WebControls_Selector : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Ajax.Utility.RegisterTypeForAjax(typeof(WebControls_Selector));
    }

    [Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.ReadWrite)]
    public static string GetList(string value)
    {
        SelectorResponse res = new SelectorResponse(value, false);
        res.AddItem("1", value + " dummy 1");
        res.AddItem("2", value + " dummy 2");
        res.AddItem("3", value + " dummy 3");
        res.AddItem("4", value + " dummy 4");
        res.AddItem("5", value + " dummy 5");

        return res.Document.OuterXml;
    }
}
